from django.urls import path,re_path
from rest_framework_simplejwt.views import TokenObtainPairView,TokenRefreshView,TokenVerifyView
from user.views import CreateUserViews,RegisterViews,MobileApiView,SmsApiView
urlpatterns = [
    path('jwt/access/',TokenObtainPairView.as_view()),
    path('jwt/refresh/',TokenRefreshView.as_view()),
    path('jwt/verify/',TokenVerifyView.as_view()),
    path('createuser/',CreateUserViews.as_view()),
    path('register/',RegisterViews.as_view()),
    re_path(r'^mobile/(?P<mobile>1[3-9]\d{9})/$',MobileApiView.as_view()),
    re_path(r'^sendsms/(?P<mobile>1[3-9]\d{9})/$',SmsApiView.as_view()),
   ]
# 拿到参数，赋值给mobile
# ，再传递给视图